{dede:config.pagesize value='20' /}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>网页元素管理</title>
<link href="css/base.css" rel="stylesheet" type="text/css">
</head>
<body background="images/allbg.gif" leftmargin="8" topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
  <tr>
    <td height="28" background="images/tbg.gif" colspan="7" style="padding-left:10px;">
      <b><a href="ad_main.php">网页元素管理</a></b>&nbsp;[<a href="web_add.php"><u>增加新网页元素</u></a>]
   </td>
</tr>
  <tr>
    <td height="28" colspan="7" style="padding-left:10px;" bgcolor="#FFFFFF"><table>
      <tr>
        <form action='web_main.php' method='get' name='form3' id="form3">
          <input type='hidden' name='dopost' value='listArchives' />
          <td><table width='900' border='0' cellpadding='0' cellspacing='0'>
            <tr>
              <td width='90' align='center'>请选择栏目：</td>
              <td width='124'>
              <?php
          $typeOptions = GetOptionList($arctype_id,$cuserLogin->getUserChannel(),$channelid);
          echo "<select name='arctype_id' id='arctype_id' style='width:140px'>\r\n";
          echo "<option value='0'>请选择栏目...</option>\r\n";
          echo $typeOptions;
          echo "</select>";
			?></td>
            <td width='100' align='center'>请选择位置：</td>
              <td width='120'>
            <?php
          $positionOptions = inc_web::select_position_option($position);
          echo "<select name='position' id='position' style='width:140px'>\r\n";
          echo "<option value='0'>请选择位置...</option>\r\n";
          echo $positionOptions;
          echo "</select>";?>
          </td>
              <td width='71'> 标题： </td>
              <td width='105'><input type='text' name='title' style='width:150' value="<?php echo $title;?>"/></td>
              <td width="130"><input name="imageField" type="image" src="images/button_search.gif" width="60" height="22" border="0" class="np" /></td>
            </tr>
          </table></td>
        </form>
      </tr>
    </table></td>
  </tr>
  <tr align="center"  bgcolor="#FBFCE2" height="24"> 
      <td width="8%">编号</td>
      <td width="20%">标题</td>
      <td width="20%">栏目</td>
      <td width="11%">位置</td>
      <td width="11%">添加时间</td>
      <td width="18%">管理</td>
   </tr>
   
   {dede:datalist}
    <tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> 
        <td>{dede:field.web_id /}</td>
        <td>{dede:field.title /}</td>
        <td>{dede:field.arctype_id function='geTarctypeName(@me)' /}</td>
        <td>{dede:field.position function='inc_web::getPositionname(@me)'/}</td>
        <td>{dede:field.add_time /}</td>
        <td>
         	<a href='web_edit.php?web_id={dede:field.web_id /}&dopost=edit'>[更改]</a>
		     <a href='web_edit.php?web_id={dede:field.web_id /}&dopost=delete' onclick="if(confirm('确定要删除这个元素吗？')){ return true; }else { return false; }">[删除]</a>
		    </td>
     </tr>
		{/dede:datalist}
     <tr align="center" bgcolor="#F9FCEF" height="24"> 
      <td colspan="7">
      	{dede:pagelist listsize=5/}
      </td>
     </tr>
   </table>
   </td>
</tr>
</table>
</body>
</html>